'宣言
Public Overloads Shared Function GroupBy
(Of TSource,TKey)( _
ByVal source As IIndexedSource(Of TSource), _
ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of TSource,TKey)) _
) As IIndexedSource(Of IGrouping(Of TKey,TSource))
public static IIndexedSource<IGrouping<TKey,TSource>> GroupBy<TSource,TKey>( IIndexedSource<TSource> source, System.Linq.Expressions.Expression<Func<TSource,TKey>> keySelector )
パラメータ
- source
- 要素をグループ化する C1.LiveLinq.Indexing.IIndexedSource<T>。
- keySelector
- 各要素のキーを抽出する関数。
型パラメータ
- TSource
- source 内の要素の型。
- TKey
- keySelector によって返されるキーの型。
戻り値の型
それぞれがオブジェクトのシーケンスとキーを含む System.Linq.IGrouping`2 オブジェクトのコレクション。